package dao;

import bean.Order;

import java.sql.SQLException;
import java.util.List;

public interface OrderDao {
    //添加订单
    int addOrder(Order order);
    //删除订单
    boolean deleteOrder(int orderId);
    //根据用户id获得订单集合
    List<Order> getOrderListByUserId(int UserId);
    //根据放映安排编号获取订单集合
    List<Order> getOrderListByScreeningScheduleId(int ScreeningScheduleId);
    //判断座位是否已经选择
     boolean isSeatSold(int screeningScheduleId, String seat);
     //根据编号获取订单
     Order getOrderById(int orderId);

}
